<div class="categories index">
	<h2><?php __('Liste des categories');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<!--<th><?php echo $this->Paginator->sort('id');?></th> -->
			<th><?php echo $this->Paginator->sort('label');?></th>
			<!---<th><?php echo $this->Paginator->sort('created');?></th>
			<th><?php echo $this->Paginator->sort('modified');?></th> -->
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($categories as $category):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<!---<td><?php echo $category['Category']['id']; ?>&nbsp;</td> -->
		<td><?php echo $this->Html->link($category['Category']['label'], array('action' => 'view', $category['Category']['id'])) ?>&nbsp;</td>
		<!--<td><?php echo $category['Category']['created']; ?>&nbsp;</td>
		<td><?php echo $category['Category']['modified']; ?>&nbsp;</td> -->
		<td class="actions">
			<?php echo $this->Html->link(__('Editer', true), array('action' => 'edit', $category['Category']['id'])); ?>
			<?php echo $this->Html->link(__('Supprimer', true), array('action' => 'delete', $category['Category']['id']), null, sprintf(__('Etes vous sur de vouloir supprimer la categorie "%s"?', true), $category['Category']['label'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	/*echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));*/
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('Precedent', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('Suivant', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
